/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.banconacion.servlet;

import com.banconacion.bean.SolicitudAperturaDTO;
import com.banconacion.service.SolicitudAperturaService;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 *
 * @author Ernesto
 */
public class ProcesarSolicitud extends HttpServlet{
    private static final long serialVersionUID = 2652225997622140246L;
    private SolicitudAperturaService aperturaService = new SolicitudAperturaService();
    
    protected void service(
            HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {
        String idSolicitud = request.getParameter("numSol");
        try {
            SolicitudAperturaDTO solicitudAperturaDTO = aperturaService.obtenerSolicitudes(Integer.valueOf(idSolicitud));
            request.setAttribute("solicitudProc", solicitudAperturaDTO);
        }
        catch(Exception e){
            
        }
        request.getRequestDispatcher("/pages/EvaluarSolicitudApertura.jsp").forward(request, response);
    }
}
